<script lang="ts" setup>
interface Props {
	size?: number;
	name?: string;
}

defineProps<Props>();
</script>

<template>
	<view class="x-icon">
		<x-image :src="`/icon/${name}.png`" :width="size + 'rpx'" :height="size + 'rpx'" prefix></x-image>
	</view>
</template>
